<template>
	<view class="container">
		<view class="orderinfo box-2 box-4">
			<view class="user-item" v-for="(item,i) in 30" >
				<image @click="toAdd(2)" :src="$img_path('/course/img/7.png')" mode="widthFix"></image>
				<view class="u-info">
					<view class="left">
						<view class="name">
							张三
						</view>
						<view class="number">
							123456789101
						</view>
					</view>
					
					<view class="right">
						<image v-if="true" :src="$img_path('/course/pay_checkbox1.png')" mode="widthFix"></image>
						<image v-if="false" :src="$img_path('/course/pay_checkbox2.png')" mode="widthFix"></image>
					</view>
				</view>
			</view>
		</view>
		
		<view class="bottom-btn pb-con">
			<view class="b-box pb-con">
				<button @click="toAdd(1)">新增信息</button>
				<button>确认选择 2人</button>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		methods:{
			toAdd(type){
				uni.navigateTo({
					url:`/pagesCourse/order/add_user?type=${type}`
				})
			}
		}
	}
</script>
<style>
	page{
		background-color: #FFFFFF;
	}
</style>
<style lang="scss" scoped>
.container{
	.orderinfo{
		width: 100%;
		background-color: #ffffff;
		border-radius: 20rpx;
		padding: 0 24rpx;
		box-sizing: border-box;
		&.box-2{
			.user-item{
				display: flex;
				align-items: center;
				padding: 30rpx 0;
				border-bottom: 1rpx solid #F5F5F5;
				image{
					width: 48rpx;
					height: 48rpx;
				}
				.u-info{
					width: calc(100% - 48rpx);
					padding-left: 28rpx;
					box-sizing: border-box;
					display: flex;
					align-items: center;
					justify-content: space-between;
					.left{
						display: flex;
						flex-direction: column;
						justify-content: center;
						.name{
							font-weight: bold;
							font-size: 34rpx;
							color: #333333;
							line-height: 48rpx;
						}
						.number{
							font-weight: bold;
							font-size: 28rpx;
							color: #333333;
							line-height: 40rpx;
							margin-top: 4rpx;
						}
					}
					.right{
						image{
							width: 48rpx;
							height: 48rpx;
						}
					}
					
				}
			}
			.add{
				display: flex;
				align-items: center;
				justify-content: center;
				padding: 30rpx 0;
				image{
					width: 48rpx;
					height: 48rpx;
					margin-right: 20rpx;
				}
				text{
					font-weight: bold;
					font-size: 34rpx;
					color: #333333;
					line-height: 48rpx;
				}
			}
		}
	}
}
.bottom-btn{
	width: 100%;
	height: 90rpx;
	background-color: #FFFFFF;
	.b-box{
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		width: 100%;
		display: flex;
		align-items: center;
		background-color: #FFFFFF;
		button{
			width: 50%;
			height: 88rpx;
			font-weight: bold;
			font-size: 36rpx;
			line-height: 88rpx;
			border-radius: 0;
			&:nth-child(1){
				color: #333333;
				background-color: #EEEEEE;
			}
			&:nth-child(2){
				color: #FFFFFF;
				background-color: #E72A2A;
			}
		}
	}
}
</style>
